// import Abstract from '../views/common/abstract.vue';

export default [{
    path: '/',
    component: (resolve) => require(['../components/common/Home.vue'], resolve),
    // redirect: '/Home',
    redirect: '/projectList',
    children: [
/*        {
            path: '/Home',
            name: '首页',
            component: (resolve) => require(['../components/page/Dashboard.vue'], resolve),
            meta: { title: '首页' }
        },*/
        {
            path: '/RoleManage',
            name: '角色管理',
            meta: {
                title: '角色管理'
            },
            component: (resolve) => require(['../components/page/RoleManage.vue'], resolve)
        }, {
            path: '/UserManage',
            name: '用户管理',
            meta: {
                title: '用户管理'
            },
            component: (resolve) => require(['../components/page/UserManage.vue'], resolve)
        }, {
            path: '/SystemLog',
            name: '系统日志',
            meta: {
                title: '系统日志'
            },
            component: (resolve) => require(['../components/page/SystemLog.vue'], resolve)
        },
        {
            path: '/Chassis',
            name: '绘制机架',
            meta: {
                title: '绘制机架'
            },
            component: (resolve) => require(['../components/page/CreateChassis.vue'], resolve)
        },
        {
            path: '/projectList',
            name: '项目列表',
            meta: {
                title: '项目列表'
            },
            component: (resolve) => require(['../components/photo/ProjectList.vue'], resolve)
        },
        {
            path: '/featurePhoto',
            name: '精选图片',
            meta: {
                title: '精选图片'
            },
            component: (resolve) => require(['../components/photo/FeaturePhoto.vue'], resolve)
        },
    ]
},
{
    path: '/projectDetail',
    name: 'projectDetail',
    component: (resolve) => require(['../components/photo/ProjectDetail.vue'], resolve)
},

];
